function env() {
    const baseUrl = {
        dev: {
            rootUrl:'https://testapi.escase.cn',
            tskey:'qa1582110005567'
        }, 
        pre:{
            rootUrl:'https://testapi.escase.cn',
            tskey:'ts1582110005567'
        },
        prod: {
            rootUrl:'https://testapi.escase.cn',
            tskey:'ts1582110005567'
        }
    }
    if (process.env.NODE_ENV == 'production') return baseUrl.prod
    if (process.env.NODE_ENV == 'pre') return baseUrl.pre
    return baseUrl.dev
}

export default env()